package com.woniu.cq.medical.service.impl;

import com.woniu.cq.medical.dao.mymapper.My_ProjectTypeMapper;
import com.woniu.cq.medical.entity.ProjectType;
import com.woniu.cq.medical.dao.ProjectTypeMapper;
import com.woniu.cq.medical.service.ProjectTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lucas
 * @since 2020-09-08
 */
@Service
public class ProjectTypeServiceImpl extends ServiceImpl<ProjectTypeMapper, ProjectType> implements ProjectTypeService {

    @Autowired
    private My_ProjectTypeMapper myProjectTypeMapper;

    /**
     * 查询所有的一级检查类别
     * 返回值为所有的一级检查类别集合
     * @return
     */
    @Override
    public List<ProjectType> selectProjectTypes() {
        List<ProjectType> projectTypes = myProjectTypeMapper.selectProjectTypes();
        return projectTypes;
    }
}
